<?php

namespace App\Observers\Game\Center;

use App\Caches\Game\AppSourceCache;
use App\Models\Game\Center\AppSource;

class AppSourceObserver
{
    /**
     * @param AppSource $model
     */
    public function created(AppSource $model)
    {
        AppSourceCache::set($model);
    }

    /**
     * @param AppSource $model
     */
    public function updated(AppSource $model)
    {
        AppSourceCache::set($model);
    }

    /**
     * @param AppSource $model
     */
    public function deleted(AppSource $model)
    {
        AppSourceCache::del($model);
    }
}
